//
//  main.m
//  day1-内存管理MRC
//
//  Created by Maggie on 15/8/1.
//  Copyright (c) 2015年 fmning. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "Car.h"
#import "Person.h"

//ARC模式代码测试
int main(int argc, const char * argv[]) {
    
    Car *bmw = [[Car alloc] initWithType:@"宝马"];
    
    Person *tom = [[Person alloc]initWithName:@"tom" andCar:bmw];

    [tom drive];
    
    return 0;
}






